package com.dai.rpc.util;

public class RuntimeUtil {

    /**
     * 获取 cpu 核数
     * @return
     */
    public static int cpus() {

        return Runtime.getRuntime().availableProcessors();
    }
}
